﻿// Decompiled with JetBrains decompiler
// Type: UnityEngine.iOS.OnDemandResources
// Assembly: UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: E6AE6B5A-2752-4B07-9528-C8B77C62CE79
// Assembly location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.dll
// XML documentation location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.xml

using System.Runtime.CompilerServices;
using UnityEngine.Bindings;

#nullable disable
namespace UnityEngine.iOS
{
  /// <summary>
  ///   <para>On Demand Resources API.</para>
  /// </summary>
  [NativeHeader("Runtime/Export/iOS/OnDemandResources.h")]
  public static class OnDemandResources
  {
    /// <summary>
    ///   <para>Indicates whether player was built with "Use On Demand Resources" player setting enabled.</para>
    /// </summary>
    public static extern bool enabled { [FreeFunction("OnDemandResourcesScripting::Enabled"), MethodImpl(MethodImplOptions.InternalCall)] get; }

    [FreeFunction("OnDemandResourcesScripting::PreloadAsync")]
    [MethodImpl(MethodImplOptions.InternalCall)]
    private static extern OnDemandResourcesRequest PreloadAsyncImpl([Unmarshalled] string[] tags);

    /// <summary>
    ///   <para>Creates an On Demand Resources (ODR) request.</para>
    /// </summary>
    /// <param name="tags">Tags for On Demand Resources that should be included in the request.</param>
    /// <returns>
    ///   <para>Object representing ODR request.</para>
    /// </returns>
    public static OnDemandResourcesRequest PreloadAsync(string[] tags)
    {
      return OnDemandResources.PreloadAsyncImpl(tags);
    }
  }
}
